package top.lileix.mybatis.generator.x.domain;

public class Column {
    
    // 字段名
    private String columnName;
    // 字段类型
    private String columnType;

    public String getColumnName() {
	return columnName;
    }

    public String getColumnType() {
	return columnType;
    }

    public Boolean getPrimaryKey() {
	return primaryKey;
    }

    public String getFieldName() {
	return fieldName;
    }

    public String getFieldType() {
	return fieldType;
    }

    public void setColumnName(String columnName) {
	this.columnName = columnName;
    }

    public void setColumnType(String columnType) {
	this.columnType = columnType;
    }

    public void setPrimaryKey(Boolean primaryKey) {
	this.primaryKey = primaryKey;
    }

    public void setFieldName(String fieldName) {
	this.fieldName = fieldName;
    }

    public void setFieldType(String fieldType) {
	this.fieldType = fieldType;
    }

    // 是否是主键
    private Boolean primaryKey = false;

    private String fieldName;

    private String fieldType;
    private String remark;

    public String getRemark() {
	return remark;
    }

    public void setRemark(String remark) {
	this.remark = remark;
    }

    @Override
    public String toString() {
	return String.format(
		"{\"columnName\":\"%s\",\"columnType\":\"%s\",\"primaryKey\":\"%s\",\"fieldName\":\"%s\",\"fieldType\":\"%s\",\"remark\":\"%s\"}",
		columnName, columnType, primaryKey, fieldName, fieldType, remark);
    }
}
